package paidaxing.blog.comment.entity;

import lombok.Data;

import java.util.Date;
import java.io.Serializable;

/**
 * 点赞表(Likes)实体类
 *
 * @author heef
 * @since 2025-10-21 09:28:38
 */
@Data
public class Likes implements Serializable {
    private static final long serialVersionUID = 109239470744100061L;
    /**
     * 点赞ID
     */
    private Long id;
    /**
     * 用户ID
     */
    private Long userId;
    /**
     * 目标类型: POST,COMMENT
     */
    private String targetType;
    /**
     * 目标ID
     */
    private Long targetId;
    /**
     * 创建时间
     */
    private Date createdAt;


    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public String getTargetType() {
        return targetType;
    }

    public void setTargetType(String targetType) {
        this.targetType = targetType;
    }

    public Long getTargetId() {
        return targetId;
    }

    public void setTargetId(Long targetId) {
        this.targetId = targetId;
    }

    public Date getCreatedAt() {
        return createdAt;
    }

    public void setCreatedAt(Date createdAt) {
        this.createdAt = createdAt;
    }

}

